package main

import (
	"fmt"
	"luiz/crawler/engine"
	"luiz/crawler/model"
	"luiz/crawler_distributed/prcsupport"
)

func main() {

	cli, err := prcsupport.NewCli(":1111")
	if err != nil {
		panic(err)
	}
	item := engine.Item{
		Url: "www.baidu.com", Id: "kkk", Type: "666", Ele: model.House{Name: "rpcyes"},
	}
	var result string
	err = cli.Call("*ItemSaverService.Save", item, &result)
	fmt.Printf(result)
	fmt.Printf("?")
}
